// 通知类型
export interface Notification {
  id: number;
  title: string;
  content: string;
  time: string;
  isRead: boolean;
  type: 'info' | 'success' | 'warning' | 'error';
  link?: string;
}

// 通知状态类型
export interface NotificationState {
  notifications: Notification[];
  lastId: number;
}

// 添加通知参数
export type AddNotificationParams = Omit<Notification, 'id' | 'time' | 'isRead'>; 